package day13;

public class Person extends Creature {
	String name;
	int age = 10;
	
	public Person(){
		
	}

	public Person(String name){
		this.name = name;
		
	}
	public Person(int age){
		this.age = age;
	}
	public Person(String name,int age){
		this(name);
		this.age = age;
	}
	
	
	public String getName() {
		return name;
	}
	/**
	 * 
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}


	public void walk() {
		System.out.println("走路");
	}
	
	public void eat() {
		System.out.println("eat");
	}
	
	public Object info(){
		return null;
	}
	
}
